<?php defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

/* JoomLeague League Management and Prediction Game for Joomla!
 * @version $Id: show_rules.tpl.php 1151 2008-06-24 15:07:32Z julienv $
 * @package Joomleague
 * @copyright Copyright (C) 2007  JoomLeague
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see _joomleague_license.txt
 *  
 * Homepage: http://www.joomleague.de
 * Support: htt://www.joomleague.de/forum/
 * 
 * This file is part of JoomLeague.
 *  
 * JoomLeague is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * Please note that the GPL states that any headers in files and
 * Copyright notices as well as credits in headers, source files
 * and output (screens, prints, etc.) can not be removed.
 * You can extend them with your own credits, though...
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 *
 * The "GNU General Public License" (GPL) is available at
 * http://www.gnu.org/copyleft/gpl.html.
*/ 

?>

<?php $print_icon = 0;?>
<div id="joomleague">
<!-- Header mit Projektnamen -->
<div class="componentheading"<?php if ($print_icon == 1) echo ' style="float:left;"';?>><?php
echo $htmlHelper->showTitle($joomleague, $overall_config['project_heading_type']); ?></div>
<!-- Druckfunktion -->
<?php if ($print_icon == "1" OR $overall_config['show_print_button'] == "1") {
$htmlHelper->PrintIcon( $row, $params, false, '' );
};?>
<!-- Druckfunktion Ende -->

<!-- Header END -->

<!-- Bereichs�berschrift-->
<table width="100%" class="contentpaneopen">
	<tr>
		<td class="contentheading"><?php echo _JL_RULES;?></td>
	</tr>
</table><br />
<!-- Bereichs�berschrift Ende -->

<!-- Inhalt -->
<table width="96%" align="center" border="0" cellpadding="3" cellspacing="0">
  <tr>
    <td><?php echo _JL_RULES_TOPIC1;?></td>
  </tr>
  <tr>
    <td><?php echo _JL_RULES_PART1;?>
        <?php $registration_enabled 	= $mainframe->getCfg( 'allowUserRegistration' );
        if ($registration_enabled) echo _JL_RULES_PART1A;?></td>
  </tr>
<?php if ($joomleague->auto_approve == 0) {;?>    
  <tr>
    <td><?php echo _JL_RULES_TOPIC2;?></td>
  </tr>
  <tr>
    <td><?php echo _JL_RULES_PART2;?></td>
  </tr>
<?php } ;?>  
  <tr>
    <td><?php echo _JL_RULES_TOPIC3;?></td>
  </tr>
  <tr>
    <td><?php echo _JL_RULES_PART3;?></td>
  </tr>
  <tr>
    <td><?php echo _JL_RULES_TOPIC4;?></td>
  </tr>
  <tr>
    <td><?php echo _JL_RULES_PART4;?></td>
  </tr>    
  <tr>
    <td><?php echo _JL_RULES_TOPIC5;?></td>
  </tr>
  <tr>
    <td><?php echo _JL_RULES_PART5;?></td>
  </tr>
    </table>
  <table width="96%" align="center" border="0" cellpadding="3" cellspacing="0">
  <tr class="sectiontableheader">
    <td align="center"><?php echo _JL_RESULT;?></td><td align="center"><?php echo _JL_TIPS_MY_TIP;?></td><td align="center"><?php echo _JL_TABLE_POINTS;?></td><?php if ($joomleague->tip_joker) { ?><td align="center"><?php echo _JL_TABLE_POINTS;?> <?php echo _JL_RULES_TIP_WITH_JOKER;?></td><?php } ?>
  </tr>
  <tr>
    <td align="center">2:1</td><td align="center">2:1</td><td align="center"><?php echo $joomleague->tip_points_correct_result;?></td><?php if ($joomleague->tip_joker) { ?><td align="center"><?php echo $joomleague->tip_points_correct_result_joker;?></td><?php } ?>
  </tr>
  <tr>
    <td align="center">2:1</td><td align="center">3:2</td><td align="center"><?php echo $joomleague->tip_points_correct_diff;?></td><?php if ($joomleague->tip_joker) { ?><td align="center"><?php echo $joomleague->tip_points_correct_diff_joker;?></td><?php } ?>
  </tr> 
  <tr>
    <td align="center">1:1</td><td align="center">2:2</td><td align="center"><?php echo $joomleague->tip_points_correct_draw;?></td><?php if ($joomleague->tip_joker) { ?><td align="center"><?php echo $joomleague->tip_points_correct_draw_joker;?></td><?php } ?>
  </tr> 
    <tr>
    <td align="center">2:1</td><td align="center">3:1</td><td align="center"><?php echo $joomleague->tip_points_correct_tendence;?></td><?php if ($joomleague->tip_joker) { ?><td align="center"><?php echo $joomleague->tip_points_correct_tendence_joker;?></td><?php } ?>
  </tr>  
    <tr>
    <td align="center">2:1</td><td align="center">0:1</td><td align="center"><?php echo $joomleague->tip_points_tip;?></td><?php if ($joomleague->tip_joker) { ?><td align="center"><?php echo $joomleague->tip_points_tip_joker;?></td><?php } ?>
  </tr>  
</table>
<br />
<table width="96%" align="center" border="0" cellpadding="3" cellspacing="0">
<?php if ($joomleague->tip_champ == 1) {;?>  
  <tr>
    <td><?php echo _JL_RULES_TOPIC6;?></td>
  </tr>
  <tr>
    <td><?php echo _JL_RULES_PART6;?></td>
  </tr> 
<?php } ;?>    
  <tr>
    <td><?php echo _JL_RULES_TOPIC7;?></td>
  </tr>
  <tr>
    <td><?php echo _JL_RULES_PART7;?></td>
  </tr> 
<?php if ($joomleague->tip_tg == 1) {;?>     
  <tr>
    <td><?php echo _JL_RULES_TOPIC8;?></td>
  </tr>
  <tr>
    <td><?php echo _JL_RULES_PART8;?></td>
  </tr>    
<?php } ;?>     
</table>    
<!-- Inhalt Ende -->

<!-- Print Button START -->
<?php $back_button = 0 ; // set to 1 or use overall template to enable back button ?>
<?php if ($back_button > 0 OR $overall_config['show_back_button'] > 0) {;?>
<?php if ($overall_config['show_back_button'] == "1") echo '<div align="left">'; else echo '<div align="right">';?>
<?php
$params = & new mosParameters( '' );
$params->def( 'back_button', true );
$params->def( 'popup', false );
mosHTML::BackButton( $params );
  echo "</div>";
};?>
<!-- Print Button END -->
</div>
